package com.czj.controller;

import com.czj.model.StoresServeShop;
import com.czj.service.StoresServeShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StoresServeShopController {
    @Autowired
    private StoresServeShopService storesServeShopService;

    @RequestMapping("/chastores/liancha")
    public List<StoresServeShop> liancha(){
        return storesServeShopService.liancha();

    }

    @RequestMapping("chastores/lianchamh")
    public List<StoresServeShop> lianchamh(int id){
        return storesServeShopService.lianchamh(id);
    }
}
